package com.cykj.service;

import com.cykj.util.ResponseDto;

import java.util.List;

public interface AdminService {
    ResponseDto deleteUserByIds(List<Integer> ids);
    //ResponseDto addUserByData(List<Object> data);
    ResponseDto selectByData(int sort, String value, int pageCurr, int pageSize);
    ResponseDto login(String account, String pwd);
    ResponseDto getAdmins(int pageCurr, int pageSize);
    ResponseDto register(String account, String pwd, String name, int roleId);
    ResponseDto forgetPwd(String account, String name, String newPwd, int roleId);
    ResponseDto getFace(int id);
    ResponseDto alterPwd(int id, String newPwd);
    ResponseDto changeStatus(int proStatus, int adminId);
    ResponseDto deleteAdmin(int adminId);
    ResponseDto alterAdmin(int id, String name, String account, String departmentName, String roleName);
    ResponseDto addCommit(String adminAccount,
                          String adminPwd,
                          String adminName,
                          String departmentName,
                          String roleName,
                          String status);
    void handleFileDownload(String newPath);
}
